﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entity;
using BAL;
using Common;
using System.Text;
using System.Collections;
namespace Web
{
    public partial class SchoolChartSet : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!PageValidate.QueryStringIsEmpty("SchoolId"))
                {
                    SchoolSetInfo info = SchoolSet.GetInfoBySchoolId(int.Parse(PageValidate.QueryString("SchoolId")));
                    string[] str = new string[] { };
                    string html = "";
                    if (info != null && !PageValidate.IsEmpty(info.ChartStr))
                    {
                        str = info.ChartStr.Split(',');
                        for (int i = 0; i < str.Length; i++)
                        {
                            html += Enum.GetName(typeof(SchoolSetItem), int.Parse(str[i])) + "<br/>";
                        }
                    }
                    else
                    {
                        html = "暂时还没有设置报表输出";
                    }
                    this.msg.InnerHtml = html;
                }
                else
                {
                    this.msg.InnerText = "暂时还没有设置报表输出";
                }
            }
        }
    }
}
